package dao;

import model.Reader;

/**
 * Data access object to allow modifications of a reader in a database.
 */
public interface ReaderDAO {

    /**
     * Get the reader associated with the given username and password.
     *
     * @param username  of the wanted reader
     * @param password  of the wanted reader
     * @return  reader associated with client id
     */
    Reader getReader(String username, String password);

    /**
     * Updates the reader in the database.
     *
     * @param reader  to update in the database
     */
    void updateReader(Reader reader);

}
